package com.slmxz.tms.biz.enums;

import com.slmxz.tms.common.base.IBaseEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;

/**
 * 订单状态枚举
 * @author sunyao
 * @Date 2024/10/29
 */
@Getter
@Schema(enumAsRef = true)
public enum OrderStatusEnum implements IBaseEnum<Integer> {
    DELETED(0,"已注销"),
    NORMAL(1, "正常"),
    CHECK (2, "已审核"),
    DISPATCH (5, "已派遣"),
    TRANSIT(7,"运输中"),
    ARRIVED(9,"已到达"),
    COMPLETED(13,"已完成"),
    CANCELLED(15,"已取消")
    ;

    private final Integer value;

    private final String label;

    OrderStatusEnum(Integer value, String label) {
        this.value = value;
        this.label = label;
    }
}
